package com.qs.education.service;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.multipart.MultipartFile;

import com.qs.education.bean.api.PageBean;
import com.qs.education.bean.api.ResponseBean;
import com.qs.education.bean.entity.EducationQuestion;

/**
 * @class IQuestionService
 * @author Jason
 * @description
 * @date Nov 22, 2018 10:21:59 AM
 */
public interface IQuestionService {

	/**
	 * @Description 查询所有符合条件的题目信息
	 * @author Jason
	 * @date Nov 22, 2018
	 * @param question
	 * @param currentPage
	 * @param pageSize
	 * @return
	 */
	PageBean getQuestionList(EducationQuestion question, Integer currentPage, Integer pageSize);

	/**
	 * @Description 根据ID删除Question
	 * @author Jason
	 * @date Nov 23, 2018
	 * @param id
	 * @return
	 */
	ResponseBean deleteQuestionById(Long id);

	/**
	 * @Description 上传excel文件 解析成list 返回给前端
	 * @author Jason
	 * @date Nov 27, 2018
	 * @param request
	 * @param file
	 * @return
	 */
	Map<String, Object> uploadQuestionExcelFile(HttpServletRequest request, MultipartFile file);

}
